﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WsdShop.Model.Enum;

namespace WsdShop.Model
{
    public class ReturnGoods
    {
        /// <summary>
        /// 
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 订单Id
        /// </summary>
        public int OrderId { get; set; }
        /// <summary>
        /// 订单号
        /// </summary>
        public string OrderNo { get; set; }
        /// <summary>
        /// 退款金额
        /// </summary>
        public decimal ReturnAmount { get; set; }
        /// <summary>
        /// 类型 0退货 1换货
        /// </summary>
        public int ReturnType { get; set; }
        /// <summary>
        /// 原因
        /// </summary>
        public string Reason { get; set; }
        /// <summary>
        /// 图片
        /// </summary>
        public string Imgs { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public ReturnStatus Satus { get; set; }
        /// <summary>
        /// 客服备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 客服Id
        /// </summary>
        public int? UserId { get; set; }
        private DateTime addTime = DateTime.Now;
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get { return addTime; } set { addTime = value; } }
        /// <summary>
        /// 会员Id
        /// </summary>
        public int MemberId { get; set; }
        private bool isDeleted = false;
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get { return isDeleted; } set { isDeleted = value; } }
        /// <summary>
        /// 退款单号
        /// </summary>
        public string ReturnNo { get; set; }

        public int OrderDetailId { get; set; }

        public ReturnResult? ReturnResult { get; set; }
    }
}
